package main

import "fmt"

/**
 * @Description
 * @Author huran
 * @Date
 * @Param
 * @return
 **/
type MyWriter2 interface {
	Write(string2 string)
}
type MyReader2 interface {
	Reader(string2 string)
}
type MyReaderWriter interface {
	MyWriter2
	MyReader2
	ReaderWriter()
}
type RW struct {
}

func (R RW) Write(string2 string) {
	fmt.Println("Write")
}

func (R RW) Reader(string2 string) {
	fmt.Println("Reader")
}

func (R RW) ReaderWriter() {
	fmt.Println("ReaderWriter")
}

func main() {
	var mr MyReaderWriter = RW{}
	fmt.Println(mr)
}
